package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Mobile   string `json:"mobile" gorm:"type:varchar(20);comment:用户名;index"`
	Password string `json:"password" gorm:"type:varchar(255);not null;comment:密码"`
}

func (u *User) TableName() string {
	return "user"
}
